package com.hz.service;

import com.hz.pojo.WashMachine;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WashMachineService {
    /**
     * 111
     * 根据洗衣机id查询对应洗衣机的功能
     * @param wash_machine_id
     * @return 返回洗衣机对象 包含一个功能集合
     * @throws Exception
     */
    public abstract WashMachine getFunction(Long wash_machine_id) throws Exception;

    /**
     * 222
     * 根据洗衣房id查询所有洗衣机
     * @param washhouse_id 洗衣房id
     * @return 返回洗衣机集合
     * @throws Exception
     */
    public abstract List<WashMachine> getWashMachineList(Long washhouse_id) throws Exception;

    /**
     * 更改洗衣机状态
     * @param wash_machine_id       //洗衣机id
     * @param wash_machine_state        //洗衣机状态
     * @return
     * @throws Exception
     */
    public abstract int updWashMachineState(Long wash_machine_id,Long wash_machine_state) throws Exception;

    /**
     * 新增洗衣机
     * @param washMachine  洗衣机实体类
     * @return
     * @throws Exception
     */
    public abstract int addWashMachine(WashMachine washMachine)throws Exception;


    /**
     * 给新增洗衣机添加功能
     * @param washingFunction_id    洗衣机id
     * @param washingFunction_function_id   功能id
     * @return
     * @throws Exception
     */
    public abstract int addWashMachineFunction(Long washingFunction_id,Long washingFunction_function_id)throws Exception;

    /**
     * 根据洗衣机安装时间获取洗衣机信息
     * @param wash_machine_install_time     洗衣机安装时间
     * @return
     * @throws Exception
     */
    public abstract WashMachine getNewWashingMachine(String wash_machine_install_time)throws Exception;

}
